import Layout from '@/layout'
import EmptyLayout from '@/layout/empty'

export default {
    path: '/liveBor',
    component: Layout,
    redirect: '/liveBro/list',
    name: 'liveBro',
    meta: {
        title: '直播管理',
        icon: 'zhibo'
    },
    children: [
        {
            path: 'live',
            name: 'liveBroList',
            component: EmptyLayout,
            redirect: '/live',
            meta: {
                title: '直播管理',
                auth: ['member.browse']
            },
            children: [
                {
                    path: '',
                    component: () => import(/* webpackChunkName: 'live_broadcast' */ '@/views/live_broadcast/broadcast/index'),
                    meta: {
                        title: '直播管理',
                        sidebar: false,
                        breadcrumb: false
                    }
                },
                {
                    path: 'add',
                    name: 'liveBroAdd',
                    component: () => import(/* webpackChunkName: 'live_broadcast' */ '@/views/live_broadcast/broadcast/detail'),
                    meta: {
                        title: '新增直播间',
                        sidebar: false,
                        activeMenu: '/liveBor/broadcast'
                    }
                },
                {
                    path: 'edit/:id',
                    name: 'liveBroEdit',
                    component: () => import(/* webpackChunkName: 'live_broadcast' */ '@/views/live_broadcast/broadcast/detail'),
                    meta: {
                        title: '编辑直播间',
                        sidebar: false,
                        activeMenu: '/liveBor/broadcast'
                    }
                },
                {
                    path: 'video/:id',
                    name: 'liveVideo',
                    component: () => import(/* webpackChunkName: 'live_broadcast' */ '@/views/live_broadcast/broadcast/videoLive'),
                    meta: {
                        title: '直播页面',
                        sidebar: false,
                        activeMenu: '/liveBor/broadcast'
                    }
                }
            ]
        }
    ]
}
